#ifndef OSDGLOBAL_H
#define OSDGLOBAL_H

#include <QMutex>
#include <QWaitCondition>

#define POINTER_FOCUS_PREV ((QObject*)1)                                            //标识focus前一个控件，调用系统函数即可
#define POINTER_FOCUS_NEXT ((QObject*)2)                                            //标识focus后一个控件，调用系统函数即可

#define LOCAL_PORT  (8085)

#define REMOTE_PORT (8084)
#define REMOTE_IP   (QString("127.0.0.1"))


#define STR_IP_REGEXP       QString("^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$")
#define STR_PORT_REGEXP     QString("((6553[0-5])|[655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{3}|[1-9][0-9]{2}|[1-9][0-9]|[0-9])")

#define REFRESH_TIMEOUT     (1000)      //ms

extern QMutex g_listen_mutex;

#endif // OSDGLOBAL_H
